<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <script src="angularjs/angular.min.js"></script>
    <script type="text/javascript" src="base.js"></script>
    <script type="text/javascript" src="service/userService.js"></script>
    <script type="text/javascript" src="controller/userController.js"></script>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        body{
            background-image: url(img/bg_imagae.jpg);
        }
        .onload{
            width: 300px;
            height: 400px;
            background-color: rgba(255,255,255,0.3);
            margin: 100px auto;
            border-radius: 5px;
        }
        form{
            padding-top: 60px;
            text-align: center;
            font-size: 22px;
            font-weight: lighter;
        }
        input{
            width: 70%;
            height: 40px;
            margin: 30px auto;
            background-color: rgba(255,255,255,0.3);
            display: block;
            border-radius: 25px;
            padding-left: 15px;
            outline: none;
            border: 1px #666 solid;
        }
        input:hover{
            background-color: rgba(255,255,255,0.5);
        }
        button{
            width: 80px;
            height: 40px;
            background-color: rgba(255,255,255,0.3);
            border: 1px #666 solid;
            border-radius: 25px;
            margin: 30px 27px 0 27px;
            cursor: pointer;
            outline: none;
            color: #333;
        }
        button:hover{
            background-color: rgba(255,255,255,0.5);
        }
    </style>
</head>
<body ng-app="myApp" ng-controller="userController" ng-init="">
    <div class="onload">
        <form>
            用户登录
            <input id="accout" type="text"  ng-model="userName"  name="userName" maxlength="6" placeholder="请输入您的账号" oninput="value=value.replace(/[^\d]/g,'')"/>
            <input id="password" type="password" ng-model="password" name="passWord" maxlength="6" placeholder="请输入您的密码" />
            <button id="onlaod" type="button" ng-click="login(userName,password)">登录</button>
            <button id="reset" type="reset">重置</button>
        </form>
    </div>
</body>

</html>